<{include file='customer/head.html'}>
<style type="text/css">
	.hcinits_uploads_file_attachment_name{position: relative;padding: 0 5px;background: #ebebe4;margin-right: 5px;}
</style>
<body>
	<div class="akrPop">
		<form id="sub_form">
			<ul class="ulForm">
				<li>
					<label class="form-label">项目：</label>
					<div class="form-input">
						<input class="inputText" type="text" disabled value="<{$list.projectname}>">
					</div>
				</li>
				<li>
					<label class="form-label">客服：</label>
					<div class="form-input">
						<input class="inputText" type="text" disabled value="<{$list.custmoername}>">
					</div>
				</li>
				<li>
					<label class="form-label">销售：</label>
					<div class="form-input">
						<input class="inputText" type="text" disabled value="<{$list.saleidname}>">
					</div>
				</li>
				<li>
					<label class="form-label">技术：</label>
					<div class="form-input">
						<input class="inputText" type="text" disabled value="<{$list.technologyuidname}>">
					</div>
				</li>
				<li>
					<label class="form-label">研发：</label>
					<div class="form-input">
						<input class="inputText" type="text"  disabled value="<{$list.yflistname}>">
					</div>
				</li>
				<li>
					<label class="form-label">是否加急：</label>
					<div class="form-input">
						<dl class="label_beauty">
							<dd>
								<input type="radio" name="isquick" id="isquick_0" disabled <{if $list.isquick==0}>checked<{/if}> value="0" >
								<label for="isquick_0">否</label>
							</dd>
							<dd>
								<input type="radio" name="isquick" id="isquick_1" disabled  <{if $list.isquick==1}>checked<{/if}> value="1" >
								<label for="isquick_1">是</label>
							</dd>
						</dl>
					</div>
				</li>
				<li>
					<label class="form-label">附件上传：</label>
					<div class="form-input">
						<div class="fl hcinits_uploads_file_attachment_name">
							<{foreach $getattachmentlist as $k=>$v}>
								<div class="attachment_file_download" data-id-dwonload="<{$v.download}>"><{$v.filename}></div>
							<{/foreach}>
						</div>
						<div class="akrfile">双击下载附件</div>
					</div>
				</li>
				<li>
					<label class="form-label">需要时间：</label>
					<div class="form-input">
						<input class="inputText" type="text" name="needtime"  disabled value="<{$list.needtime}>">
					</div>
				</li>
				<li>
					<label class="form-label">变动原因：</label>
					<div class="form-input">
						<input class="inputText" type="text" name="modifyrecord"  disabled value="<{$list.modifyrecord}>">
					</div>
				</li>
				<li>
					<label class="form-label">描述：</label>
					<div class="form-input">
						<div style="width: 80%;min-height: 28px;line-height: 28px;padding: 0 5px;border:1px solid #e6e6e6;border-radius: 3px;background: #ebebe4;">
							<{$list.description}>
							<!-- <input class="inputText" type="text" name=""  disabled value="<{$list.description}>"> -->
						</div>
					</div>
				</li>
				<li style="position: fixed;bottom: 10%;left: 40%;">
					<{if $list.status==0}>
						<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 2}>
						<input type="button" class="akrBtn akrBtn-lg blue" onclick="verify_status('<{$list.id}>')" value="项目经理审核">
						<{/if}>
					<{elseif $list.status==1}>
						<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 4}>
						<input type="button" class="akrBtn akrBtn-lg blue" onclick="verify_status('<{$list.id}>')" value="总经理审核">
						<{/if}>
					<{elseif $list.status==2}>
						<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 8}>
						<input type="button" class="akrBtn akrBtn-lg blue" onclick="verify_status('<{$list.id}>')" value="研发审核">
						<{/if}>
					<{elseif $list.status==3}>
						<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 16}>
						<input type="button" class="akrBtn akrBtn-lg blue" onclick="verify_status('<{$list.id}>',100)" value="完成">
						<{/if}>
					<{elseif $list.status==100}>
						<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 16}>
						<input type="button" class="akrBtn akrBtn-lg blue" onclick="verify_status('<{$v.id}>')" value="撤销">
						<{/if}>
					<{/if}>
				</li>
			</ul>
			<!-- <div class="fl" style="width: 60%;margin-left: 2%;line-height: 30px;">
				<label class="form-label">描述：</label>
				<div class="form-input">
					<{$list.description}>
				</div>
			</div> -->
<!-- 
			<div><span>项目:</span>
				<input class="inputText" type="text"   disabled value="<{$list.projectname}>">
			</div>
			<div><span>客服:</span>
				<input class="inputText" type="text"   disabled value="<{$list.custmoername}>">
			</div>
			<div><span>销售:</span>
				<input class="inputText" type="text"  disabled value="<{$list.saleidname}>">
			</div>
			<div><span>技术:</span>
				<input class="inputText" type="text"  disabled value="<{$list.technologyuidname}>">
			</div>
			<div><span>研发:</span>
				<input class="inputText" type="text"  disabled value="<{$list.yflistname}>">
			</div>
			<div>
				<span>是否加急:</span>
				<input type="radio" name="isquick" disabled <{if $list.isquick==0}>checked<{/if}> value="0" >否
				<input type="radio" name="isquick" disabled  <{if $list.isquick==1}>checked<{/if}> value="1" >是
			</div>
			<div><span>附件上传:</span>
				<div class="hcinits_uploads_file_attachment_name">
					<{foreach $getattachmentlist as $k=>$v}>
					<div>
							<div class="attachment_file_download" data-id-dwonload="<{$v.download}>"><{$v.filename}></div>
					</div>
					<{/foreach}>
				</div>
				<div>双击下载附件</div>
			</div>
			<div><span>需要时间:</span>
				<input class="inputText" type="text" name="needtime"  disabled value="<{$list.needtime}>">
			</div>
			<div><span>变动原因:</span>
				<input class="inputText" type="text" name="modifyrecord"  disabled value="<{$list.modifyrecord}>">
			</div> 
			<div><span>描述:</span>
				<textarea name="description" style="width:100%;height:400px;" id="content"><{$list.description}></textarea>
			</div>
			<div>
				<{if $list.status==0}>
					<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 2}>
					<input type="button" onclick="verify_status('<{$list.id}>')" value="项目经理审核">
					<{/if}>
				<{elseif $list.status==1}>
					<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 4}>
					<input type="button" onclick="verify_status('<{$list.id}>')" value="总经理审核">
					<{/if}>
				<{elseif $list.status==2}>
					<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 8}>
					<input type="button" onclick="verify_status('<{$list.id}>')" value="研发审核">
					<{/if}>
				<{elseif $list.status==3}>
					<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 16}>
					<input type="button" onclick="verify_status('<{$list.id}>',100)" value="完成">
					<{/if}>
				<{elseif $list.status==100}>
					<{if $pmsuserinfo.isitadministrator==1 || $pmsuserinfo.powerlist & 16}>
					<input type="button" onclick="verify_status('<{$v.id}>')" value="撤销">
					<{/if}>
				<{/if}>
			</div> -->
		</form>
	</div>

<script type="text/javascript">
	 var cmsurl='<{$pmsroot}>/Ueditor/UeditorController/comindex';
	 var cmsroot='<{$pmsroot}>/';
	 var cmsupload='<{$pmsroot}>';
	 var ue;
</script>
<script type="text/javascript" charset="utf-8" src="/static/js/plugins/ueditor/ueditor.config.js?version=<{$getconfig.admin_jscss_version}>"></script>
<script type="text/javascript" charset="utf-8" src="/static/js/plugins/ueditor/ueditor.all.js?version=<{$getconfig.admin_jscss_version}>"> </script>
<script type="text/javascript" charset="utf-8" src="/static/js/plugins/ueditor/lang/zh-cn/zh-cn.js?version=<{$getconfig.admin_jscss_version}>"></script>
<script type="text/javascript">
	$(function(){
		ue = UE.getEditor('content',{
			initialFrameWidth:'100%',
			initialFrameHeight:'300',
			wordCount:false,
			elementPathEnabled:false,
			//enableContextMenu: false,
			allowDivTransToP:false,
			autoHeightEnabled:true,
			autoFloatEnabled:true,
            //topOffset:100,
			//initialStyle:'p{line-height:1em;font-size:14px;}'
		});
		ue.ready(function() {
			ue.setDisabled();
		});
	})

</script>
<script type="text/javascript">
	//审核
	function verify_status(id){
			var vhtml='<{$pmsroot}>/ProjectRecord/projectRecordVerifyHtml?id='+id;
			_hcinits.init(['_layer_admin_min'],function(){
				_layer_admin=_hcinits._layer_admin;
				_layer_admin.open('审核',vhtml,'600px','400px');
			})
		}
	//审核回调函数
	function verify_return(){
		_layer_admin.parentclose('verify_return');
		//parent.verify_return();
		//window.location.reload();
	}
	$(function(){
		//下载
		$('.hcinits_uploads_file_attachment_name').on('dblclick','.attachment_file_download',function(){
			var downloadurl=$(this).attr('data-id-dwonload');
			window.location.href=downloadurl;
		})		
		
	})
</script>
</body>
 
</html>